package com.gtw.modules.sys.service.impl;

import com.gtw.modules.dao.TbExpressCodeDao;
import com.gtw.modules.entity.TbExpressCode;
import com.gtw.modules.sys.service.TbExpressCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author wuye
 * @date 2018/3/27
 */
@Service
public class TbExpressCodeServiceImpl implements TbExpressCodeService {

    @Autowired
    private TbExpressCodeDao tbExpressCodeDao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return tbExpressCodeDao.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TbExpressCode record) {
        return tbExpressCodeDao.insert(record);
    }

    @Override
    public int insertSelective(TbExpressCode record) {
        return tbExpressCodeDao.insertSelective(record);
    }

    @Override
    public TbExpressCode selectByPrimaryKey(Integer id) {
        return tbExpressCodeDao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TbExpressCode record) {
        return tbExpressCodeDao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TbExpressCode record) {
        return tbExpressCodeDao.updateByPrimaryKey(record);
    }

    @Override
    public List<TbExpressCode> foundAll() {
        return tbExpressCodeDao.foundAll();
    }


}
